using System;
using System.Collections.Generic;
using System.Text;

namespace Circo.Essentials.Exceptions
{
    public class LogicalKeyViolationException : Exception
    {
        private object _troublingObject;

        public object TroublingObject
        {
            get { return _troublingObject; }
            set { _troublingObject = value; }
        }

        public LogicalKeyViolationException(object troublingObject)
            : base()
        {
            this.TroublingObject = troublingObject;
        }

        public LogicalKeyViolationException(string message, object troublingObject)
            : base(message)
        {
            this.TroublingObject = troublingObject;
        }

        public LogicalKeyViolationException(string message, Exception innerException, object troublingObject)
            : base(message, innerException)
        {
            this.TroublingObject = troublingObject;
        }

    }
}
